// Calling.h: interface for the Calling class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CALLING_H__0245611B_ED8E_4D47_AAB3_0583187F36B4__INCLUDED_)
#define AFX_CALLING_H__0245611B_ED8E_4D47_AAB3_0583187F36B4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "SetGrade.h"
class Calling;

typedef CArray<Calling,Calling> CCallingArray;
typedef CArray<Calling*,Calling*> CCallingPtrArray;

class Calling  
{
public:
	Calling();
	virtual ~Calling();

public:
	CString m_strKey;
	CString m_strName;
	CArray<SetGrade,SetGrade> m_arSetGrade;

public:
	void AddSetGrade ( SetGrade& sg ) {
		m_arSetGrade.Add( sg );
	}
	void RemoveAllSetGrade() {
		m_arSetGrade.RemoveAll();
	}
	CString GetSetGradeKeyByName ( const CString& strKey );
//	static Calling* FindCallingByKey ( CCallingPtrArray& arCallingPtr, const CString& strCallingKey );

};

#endif // !defined(AFX_CALLING_H__0245611B_ED8E_4D47_AAB3_0583187F36B4__INCLUDED_)
